package com.yuancheng.common.constant;

public interface CommonConstant {

	/**
	 * 正常状态
	 */
	Integer STATUS_NORMAL = 0;

	/**
	 * 禁用状态
	 */
	Integer STATUS_DISABLE = -1;

	/**
	 * 删除标志
	 */
	Integer DEL_FLAG_1 = 1;

	/**
	 * 未删除
	 */
	Integer DEL_FLAG_0 = 0;

	/**
	 * 系统日志类型： 登录
	 */
	int LOG_TYPE_1 = 1;

	/**
	 * 系统日志类型： 操作
	 */
	int LOG_TYPE_2 = 2;
	
	
	/** {@code 500 Server Error} (HTTP/1.0 - RFC 1945) */
    public static final Integer SC_INTERNAL_SERVER_ERROR_500 = 500;
    /** {@code 200 OK} (HTTP/1.0 - RFC 1945) */
    public static final Integer SC_OK_200 = 200;

    
    public static String PREFIX_USER_ROLE = "PREFIX_USER_ROLE";
    public static String PREFIX_USER_PERMISSION  = "PREFIX_USER_PERMISSION ";
    public static int  TOKEN_EXPIRE_TIME  = 3600; //3600秒即是一小时
	/**用户令牌*/
    public static String PREFIX_USER_TOKEN  = "PREFIX_USER_TOKEN ";
    /**商家令牌*/
    public static String PREFIX_STORE_TOKEN  = "PREFIX_STORE_TOKEN ";

	public static String LOGIN_PASSWORD_RSAKEY  = "LOGIN_PASSWORD_RSAKEY";
	public static String UPDATE_PASSWORD_RSAKEY  = "UPDATE_PASSWORD_RSAKEY";
	public static int  RSAKEY_EXPIRE_TIME   = 600; // 10分钟

	public static String CODE_TYPE_REGISTER  = "1";
	public static String CODE_TYPE_FORGET  = "2";
	public static String CODE_TYPE_CHECKOLD  = "3";
	public static String CODE_TYPE_BINDNEW  = "4";
	public static int  CODE_EXPIRE_TIME   = 300; // 5分钟

	public static String MSG_EXPIRE_TIME  = "3"; // 短信验证码保留时间
	public static String AMAP_API_URL = "https://restapi.amap.com/v3/config/district"; // 高德地图url
	public static String AMAP_KEY = "f9fe6a1a1ac5622f07091b9a0da8c395"; // 高德地图key

	public static String STORE_TYPE_FOOD = "1"; // 美食类型商家
	public static String STORE_TYPE_HOTAL = "2"; // 酒店类型商家

	public static String STORE_TYPE_FOOD_STATUS = "1"; // 美食商家类型状态，1，启用、2，未启用
	public static String STORE_TYPE_HOTAL_STATUS = "1"; // 酒店商家类型状态，1，启用、2，未启用

	public static String MANUFACTURER_ROLE_ID = "00000001"; // 厂商角色id


	public static String LOGIN_TYPE = "LOGIN_TYPE";//登陆的类型

	//public static String ADS_TURN_TYPE_FSTORE = "2";//广告跳转类型为美食商家
	//public static String ADS_TURN_TYPE_HSTORE = "3";//广告跳转类型为酒店商家
	//public static String ADS_TURN_TYPE_ACTIVITY = "4";//广告跳转类型为霸王餐

	public static String ADS_TYPE = "1";//广告类型，默认为1，移动端广告
	public static String ADS_STATUS = "2";//广告状态，默认为1，未发布
	public static String ADS_POSITION = "1";//广告位置，默认为1，首页轮播

	public static String STORE_COOPERATE_TYPE_LEAGUE = "1"; // 商家合作类型，加盟
	public static String STORE_COOPERATE_TYPE_ENTER = "2"; // 商家合作类型，入驻

	public static String STORE_ORDER_FOOD_STATUS = "7"; // 美食商家订单状态，已退款
	public static String STORE_ORDER_HOTAL_STATUS = "7"; // 酒店商家订单状态，已退款

	public static String STORE_BUSINESS_STATUS = "2"; // 商家营业状态，停止营业
	public static String STORE_LICENSE_STATUS = "2"; // 商家审核状态，通过审核
	public static String STORE_STATUS = "1"; // 商家状态，已开放
	public static String STORE_IS_TOP = "2"; // 是否置顶，否

	/** 支付方式 */
	public static final String PAYWAY_ALIPAY = "1";
	public static final String PAYWAY_WEIXIN = "2";

	/** 支付平台 */
	public static final String PAYPLATFORM_ANDROID   = "1";
	public static final String PAYPLATFORM_IOS = "2";
	public static final String PAYPLATFORM_H5 = "3";

	/** 订单状态 */
	public static final String ORDER_STATUS_WIATPAY   = "1";
	/** 商家登录密码 */
	public static final String STORE_PASSWORD   = "123456";



	/**
     *  0：一级菜单
     */
    public static Integer MENU_TYPE_0  = 0;
   /**
    *  1：子菜单 
    */
    public static Integer MENU_TYPE_1  = 1;
    /**
     *  2：按钮权限
     */
    public static Integer MENU_TYPE_2  = 2;
    public static String USER_DEFAULT_AVATAR = "user/default/default_avatar.png";
	public static long ORDER_DURATION = 30;


	/** 优惠券类型 */
	public static String COUPON_TYPE_1  = "1";  // 全场送券
	public static String COUPON_TYPE_2  = "2";  // 分享赠券
	public static String COUPON_TYPE_3  = "3";  // 消费赠券
	public static String COUPON_TYPE_4  = "4";  // 注册赠券


	public static  int ACTIVITY_NEED_POINT = 100;

	public static  String AC_SHARE_URL = "http://120.78.184.189/locallife/activityHelp.html";
	//区域主管角色ID
	String ROLE_REGIONAL_SUPERVISOR = "000000";
	// 模板下载路径
	String TEMP_URL = "src/main/resources/export-template/";
}
